package xian.woniuxy.service;

import xian.woniuxy.entity.User;

import java.util.List;

/**
 * @author gao
 * @date 2023/07/03 11:29:58
 */
public interface UserService {
    int save(User user);

    int delete(Integer id);

    int update(User user);

    User findOne(Integer id);

    List<User> findAll();

    int distributeUserRoles(Integer userId, List<Integer> roleIds);
}
